package com.xiaoxu.intranetweb.mybatisplusSzappdb.business.company;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.xiaoxu.intranetweb.mybatisplusSzappdb.entity.CCompanyClass;
import com.xiaoxu.intranetweb.mybatisplusSzappdb.service.ICCompanyClassService;
import com.xiaoxu.intranetweb.util.SzResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class CpyClassBu {
    @Autowired
    private ICCompanyClassService companyClassService;
//    拿到所有公司类型
    public SzResult getCompanyClass(){
        QueryWrapper<CCompanyClass> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("CPYCLASS_DELETED",0);
        return SzResult.success(companyClassService.list(queryWrapper));
    }
}
